<!-- cuerpo -->
<div id="yui-main">
    <div class="yui-b">
        <div class="yui-gc">
            <div class="yui-u first">
                <div class="ui-jqgrid-titlebar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix" style="padding:5px;">
                    Para comenzar su pedido, seleccione los productos segun la categoria:
                </div>
                <div id="gbox_editgrid" class="ui-jqgrid ui-widget ui-widget-content ui-corner-all" dir="ltr" style="padding:5px;">

                    <table class="contentpaneopen">
                        <tbody>
                            <tr>
                                <td valign="top" colspan="2">
                                    <div>
                                        <table class="espaciado2" border="0">
                                            <tbody>
                                                <tr>
                                                    <td>
                                                        <table border="0">
                                                            <?php foreach ($consulta->result() as $row):?>
                                                            <tr>
                                                                    <?php $query = $this->db->query("SELECT * FROM category WHERE category_id=".$row->category_child_id);
                                                                    $row2=$query->row();
                                                                    ?>
                                                            <tr>
                                                                <td colspan="2" height="30">*<?=$row2->category_name;?>-----------|</td>
                                                            </tr>
                                                            <tr>
                                                                <td width="120" valign="top"></td>
                                                                <td valign="top">
                                                                        <?php
                                                                        $query = $this->db->query("SELECT * FROM category_xref WHERE category_parent_id=".$row2->category_id);
                                                                        foreach ($query->result() as $row3):
                                                                            ?>
                                                                            <?php $query = $this->db->query("SELECT * FROM category WHERE category_id=".$row3->category_child_id);
                                                                            $row4=$query->row();
                                                                            ?>
                                                                    <table border="0">
                                                                        <tr>
                                                                            <td class="sub-categoria"onmouseout=" this.className='sub-categoria'" onmouseover="this.className='sub-categoria_rollover';" >
                                                                                |-<a style="font-family: Arial,Helvetica,sans-serif; text-decoration: none; font-size: 12px; color: rgb(84, 84, 84);" href="<?=base_url();?>index.php/ecommerce_empresa1/pedido1/<?=$row3->category_child_id?>"><?=$row4->category_name?></a>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                        <?php endforeach;?>
                                                                </td>
                                                            </tr>
                                                            <?php endforeach;?>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <div class="back_button"></div>
            </div>
